﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

public partial class Result : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            if (Session["user"] != null)
            {
                this.Log_in1.Visible = false;
                this.Log_out1.Visible = true;
            }
            else
            {
                this.Log_in1.Visible = true;
                this.Log_out1.Visible = false;
            }
            // catch parameters
            if (Request.Params.Get("reg") == Constant.PARA_REG_OK)
            {
                this.lblMessage.Text = Constant.MESSAGE_REGISTER_SUCESSFUL;
            }
            // catch parameters
            if (Request.Params.Get("sendmail") == Constant.PARA_REG_OK)
            {
                this.lblMessage.Text = Constant.MESSAGE_EMAIL_SUCESSFUL;
            }
            //catch contact email
            if (Request.Params.Get("contact") == Constant.PARA_REG_OK)
            {
                this.lblMessage.Text = Constant.MESSAGE_EMAIL_SUCESSFUL_CONTACT;
            }
        }
        else
        {

        }
    }
    protected void cmdHome_Click(object sender, EventArgs e)
    {
        Response.Redirect("default.aspx");
    }
}
